import { Name } from '@/enums/router';
import type { RouteRecordRaw } from 'vue-router';

// 首页模块
const router: Array<RouteRecordRaw> = [
  // {
  //   path: "/",
  //   component: () => import("@/layouts/home/index.vue"),
  //   meta: {
  //     title: "楼盘信息",
  //   },
  //   children: [
  {
    path: "/ab",
    component: () => import("@/views/layouts/home/index.vue"),
    meta: {
      title: "楼盘信息",
    },
    children: [
      {
        path: "/a",
        name: Name.CITY,
        component: () => import("@/views/pages/home/index.vue"),
        meta: {
          title: "楼盘信息",
        }
      },
      // {
      //   path: "/b",
      //   name: Name.CITY1,
      //   component: () => import("@/views/pages/home1/index.vue"),
      //   meta: {
      //     title: "楼盘信息",
      //   }
      // }
      // {
			// 	path: "/:city/404",
			// 	component: () => import("@/views/pages/error/404/index.vue"),
			// 	meta: {
			// 		//headReplace:['city'],
			// 		middleware:['head']
			// 	}
			// },
      // {
			// 	path: "/:city/500",
			// 	component: () => import("@/views/pages/error/500/index.vue"),
			// 	meta: {
			// 		middleware:['head']
			// 	}
			// }
      
    ]
  },
// ]
//   }

  // }
];

export default router;
